const mongoose = require('mongoose');
const likeSchema = new mongoose.Schema({
  video: {
    type: mongoose.Schema.ObjectId,
    ref: 'Tour',
    required: [true, 'like must belong to a video'],
  },
  user: {
    type: mongoose.Schema.ObjectId,
    ref: 'User',
    required: [true, 'like must belong to a user'],
  },
});
const Like = mongoose.model('Like', likeSchema);
module.exports = Like;
